﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>   
    <title>投放信息</title>  
</head>
<body ms_positioning="GridLayout" style="padding-right: 10px; padding-left: 10px;
    padding-bottom: 10px; padding-top: 10px">
    <table id="appQuery" class="appQuery" onquery="_DoQuery()" style="font-size: 9pt"
        height="100%" border="0" cellspacing="0" cellpadding="0" width="100%">
        <tr height="30">
            <td>
                <!--Begin of 下拉列表控件-->
                <table style="table-layout: fixed; vertical-align: text-bottom; width: 100%; height: 30px"
                    cellspacing="0" cellpadding="0" border="0">
                    <colgroup>
                        <col width="60">
                        <col>
                        <col width="20">
                        <col>
                        <col width="15">
                    </colgroup>
                    <tr valign=top>
                        <td>
                            <b style="color: #666666">项目</b>
                        </td>
                        <td>
                            <div id="ddtree">
                            </div>
                        </td>
                        <td>
                            <!--占位格-->
                        </td>
                    </tr>
                </table>
                <!--End of 下拉列表控件-->
            </td>
        </tr>
      <tr>
      <td></td><td></td><td></td>
      </tr>
      
    </table>
    
</body>
</html>
 <script type="text/javascript" src="/project/js/sea.js"></script>
    
<script language="javascript" type="text/javascript">

    var TreeType = { None: -1, Group: 0, Company: 10, EndCompany: 20, Dept: 30, Project: 60, EndProject: 70 }    
    var option = {
        onchange: false  //选择元素后的回调函数
            , showSearch: true     //是否显示搜索框
             , treeType: TreeType.EndProject //数据加载类型
             , selectType: TreeType.EndCompany //可以选择的类型
             , showType: TreeType.EndProject //默认展开类型，-1不展开
             , showGroup: true  //是否显示集团
             , showCompany: true //是否显示区域公司
              , applySys: '0201' //业务系统
             , serviceMethod: 'MySoft.Project.Control.DDTreeService.GetDDTreeData' //后台数据提供方法
             , autoSwitchCompany: true //是否自动切换公司
             
    }
    option.onchange = function(item) {
     //   alert(item.type + "----" + item.id + "-----" + item.name);
}
seajs.use('DDTree', function(ddtree) {
    var d = new ddtree('ddtree', option);
});

  
    </script>

